package com.itic.appbase.framework.xcx.type;

public enum SendType {
	self("self","自提"),send("send","配送");
	private String type;
	private String name;
	SendType(String type,String name){
		this.name = name;
		this.type = type;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public static SendType getSendType(String type){
		SendType SendType = null;
		switch(type){
		case"self":
			SendType = SendType.self;
			break;
		case"send":
			SendType = SendType.send;
			break;
			default:break;
		}
		return SendType;
	}
}
